<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
添加用户<br>
<%-- ${} el表达式 --%>
<c:forEach items="${users}" var="user">
    ${user.id} -- ${user.name} -- ${user.pass}<br>
</c:forEach>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="150">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>密码</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <c:forEach items="${users}" var="user">
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>${user.pass}</td>
            <td>
                修改
                删除
            </td>
        </c:forEach>
    </tr>
    <tr>
        <td>孟子</td>
        <td>华夏</td>
        <td>穷则独善其身，达则兼济天下</td>
    </tr>
    </tbody>
</table>
</body>
</html>

<c:forEach items="${users}" var="user">
    <td>${user.id}</td>
    <td>${user.name}</td>
    <td>${user.pass}</td>
    <td>
        修改
        删除
    </td>
</c:forEach>
</tr>
<tr>
    <td>孟子</td>
    <td>华夏</td>
    <td>穷则独善其身，达则兼济天下</td>
</tr>
</tbody>
</table>
</body>
</html>
